package session.stateless.CRM;

import entity.CRM.LineItem;
import entity.CRM.ProductPrice;
import entity.CRM.SaleInquiry;
import java.util.List;
import javax.ejb.Local;

@Local
public interface SaleInquiryBeanLocal {
    
    public List<ProductPrice> getProductPrice();
    public Double calculateFinalPrice(ProductPrice product, Long quantity, Double customDiscount);
    public LineItem createLineItem_CustomDiscountIncluded(ProductPrice product, Long quantity, Double customDiscount);
    public LineItem createLineItem_VolumeDiscountIncluded(ProductPrice product, Long quantity);
    public LineItem createLineItem_VolumeCustomDiscountIncluded(ProductPrice product, Long quantity, Double customDiscount);
    public void deleteLineItem(long lineItemId);
    
    public Long createSaleInquiry(String saleLeadName,List<LineItem> lineItems, Double customDiscount);
    public void updateSaleInquiry(Long saleInquiryId, List<LineItem> lineItems);
    public void deleteSaleInquiry(Long saleInquiryId);
    
    public List<SaleInquiry> getAllSaleInquiries();
    public List<SaleInquiry> getSaleInquiries(Long id);
    public List<SaleInquiry> getSaleInquiriesBySaleLead(String registrationNumber);
    public List<SaleInquiry> getSaleInquiriesByCustomer(String registrationNumber);
    
}
